//
// Created by vcq on 21/2/24.
//

#pragma once
#ifndef SYLLABUS_API_ADMIN_HPP
#define SYLLABUS_API_ADMIN_HPP
#include "utils_dao.hpp"
#include <string>
#include "dbng.hpp"
#include "model/school.hpp"
using namespace nlohmann;
using namespace std;
static void getSchool(request& req, response& res) {
    basic_string_view<char> id = req.get_query_value("id");
    json item=mgetSchool(id);
    res.set_status_and_content(status_type::ok, item.dump(),req_content_type::json);
}
#endif //SYLLABUS_API_ADMIN_HPP
